<?php
class EWebby_EventHandler {
	private $_attachedObject;
	private $_methodName;
	
	public function __construct($attachedObject, $methodName) {
		$this->_attachedObject = $attachedObject;
		$this->_methodName = $methodName;
	}
	
	public function call($sender, $eventArgs) {
		call_user_method($this->_methodName, $this->_attachedObject,
			$sender, $eventArgs);
	}
}